package org.xteam.box2text.oaw;

import java.util.List;

public class EscapePrimitive extends Primitive {

	@Override
	public Object evaluate(List<Object> arguments) {
		String str = (String) arguments.get(0);
		String from = (String) arguments.get(1);
		String to = (String) arguments.get(2);
		return str.replaceAll(from, to);
	}

	@Override
	public String getName() {
		return "escape";
	}

}
